package day2.about_attributes.demo3_priority;
/**
 * 设置/获取线程优先级
 */
public class Main {
    public static void main(String[] args) {
        Thread main = Thread.currentThread();
        System.out.println(main.getPriority());
        main.setPriority(Thread.MAX_PRIORITY);
        System.out.println(main.getPriority());
        main.setPriority(Thread.NORM_PRIORITY);
        System.out.println(main.getPriority());
        main.setPriority(Thread.MIN_PRIORITY);
        System.out.println(main.getPriority());
    }
}
